package com.bite.book.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class ATV  extends TV{
    private int year;
    private String c;

    public ATV(long id, String name, int year, String c) {
        super(id, name);
        this.year = year;
        this.c =c;
    }

    public static void main(String[] args) {
        ATV a = new ATV(2,"123",23,"321");
        ATV b = new ATV(2,"123",23,"321");
        System.out.println(a.equals(b));
    }
}
